{% extends 'layout.html' %}
{% from 'bootstrap/form.html' import render_form %}

{% block main %}
<style>
    .card-body img{
        max-width: 100% !important;
        height: auto !important;
    }
</style>
<div class="card">
    <div class="card-header">
        <div class="card-title">
            图片详情
        </div>
    </div>
    <!-- /.card-header -->
    <div class="card-body">

        <div class="row">

            <div class="col-5">
                {{ render_form(form) }}
            </div>
            <div class="col">
                <img src="{{ picture.url }}?{{ range(1, 99999)|random }}">
            </div>
        </div>
    </div>
</div>
{% endblock %}